package team.pwy.pojo.entity;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(of = {"id"})
public class User implements Serializable {

  private Integer id;
  private String nickname;
  private Integer sex;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
  private Date birthday;
  private String area;
  private double dataCompleteness;
  private String account;
  private String password;
  private String email;
  private String phone;
  private String realName;
  private String idCard;
  private Integer memberId;
  private Integer avatarId;
  private String avatarUrl;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
  private Date uptime;
  private String recommend;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
  private Date createTime;
  private String status;
  private String hobby;
  private String signature;
}
